package com.renting.common.persistence;

import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import javax.persistence.EntityManager;
import java.util.List;

@Repository
public class CommonDaoImpl {
    @Autowired
    private EntityManager entityManager;


    public <T> T save(T t) {
        entityManager.persist(t);
        return t;
    }

    public <T> T findOne(T t) {

        return null;
    }


}
